package com.awenhui.demo.config.shiro;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * 手机号验证码token
 * @author yuxf
 * @version 1.0
 * @date 2020/12/22 14:21
 */
public class PhoneVcodeToken implements AuthenticationToken {
    private String phone;
    private String vcode;
    public  PhoneVcodeToken(String phone,String vcode)
    {
        this.phone=phone;
        this.vcode=vcode;
    }
    @Override
    public Object getPrincipal() {
        return phone;
    }

    @Override
    public Object getCredentials() {
        return vcode;
    }
}
